﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Continuum
{
    public partial class EnterPassword : Form
    {
        public EnterPassword()
        {
            InitializeComponent();
        }

        private void EnterPassword_Load(object sender, EventArgs e)
        {
            //this.StartPosition = FormStartPosition.CenterScreen;
            ActiveControl = txtPassword;
        }

        private void btnDone_Click(object sender, EventArgs e)
        {
            MainForm.EncryptPassword = txtPassword.Text;
            Close();
        }

        private void txtPassword_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == 13)
            {
                MainForm.EncryptPassword = txtPassword.Text;
                Close();
            }
        }
    }
}
